package com.eightbears.beboy.entity;

import java.io.Serializable;
import java.util.List;

/**
 * Created by Bao on 2017/7/17.
 */

public class ReserveEntity implements Serializable {

    public static final String STATUS_WAIT = "0";
    public static final String STATUS_AGREE = "1";
    public static final String STATUS_REFUSE = "2";
    public static final String STATUS_PAST = "3";
    public static final String STATUS_CANCEL = "4";

    private String message;
    private String status_code;
    private ReserveList data;

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public String getStatus_code() {
        return status_code;
    }

    public void setStatus_code(String status_code) {
        this.status_code = status_code;
    }

    public ReserveList getData() {
        return data;
    }

    public void setData(ReserveList data) {
        this.data = data;
    }

    @Override
    public String toString() {
        return "ReserveEntity{" +
                "message='" + message + '\'' +
                ", status_code='" + status_code + '\'' +
                ", data=" + data +
                '}';
    }

    public static class ReserveList implements Serializable {

        private int next_page;
        private int page_size;
        private int is_end;
        private List<ReserveInfo> list;

        public int getNext_page() {
            return next_page;
        }

        public void setNext_page(int next_page) {
            this.next_page = next_page;
        }

        public int getPage_size() {
            return page_size;
        }

        public void setPage_size(int page_size) {
            this.page_size = page_size;
        }

        public int getIs_end() {
            return is_end;
        }

        public void setIs_end(int is_end) {
            this.is_end = is_end;
        }

        public List<ReserveInfo> getList() {
            return list;
        }

        public void setList(List<ReserveInfo> list) {
            this.list = list;
        }

        @Override
        public String toString() {
            return "ReserveList{" +
                    "next_page=" + next_page +
                    ", page_size=" + page_size +
                    ", is_end=" + is_end +
                    ", list=" + list +
                    '}';
        }
    }

    public static class ReserveInfo implements Serializable {

        private String id;
        private String user_id;
        private String shop_id;
        private String manager_user_id;
        private String status;
        private String mobile;
        private String num;
        private String time;
        private String comment;
        private String created_at;
        private String updated_at;
        private UserInfo user;

        public UserInfo getUser() {
            return user;
        }

        public void setUser(UserInfo user) {
            this.user = user;
        }

        public String getId() {
            return id;
        }

        public void setId(String id) {
            this.id = id;
        }

        public String getUser_id() {
            return user_id;
        }

        public void setUser_id(String user_id) {
            this.user_id = user_id;
        }

        public String getShop_id() {
            return shop_id;
        }

        public void setShop_id(String shop_id) {
            this.shop_id = shop_id;
        }

        public String getManager_user_id() {
            return manager_user_id;
        }

        public void setManager_user_id(String manager_user_id) {
            this.manager_user_id = manager_user_id;
        }

        public String getStatus() {
            return status;
        }

        public void setStatus(String status) {
            this.status = status;
        }

        public String getMobile() {
            return mobile;
        }

        public void setMobile(String mobile) {
            this.mobile = mobile;
        }

        public String getNum() {
            return num;
        }

        public void setNum(String num) {
            this.num = num;
        }

        public String getTime() {
            return time;
        }

        public void setTime(String time) {
            this.time = time;
        }

        public String getComment() {
            return comment;
        }

        public void setComment(String comment) {
            this.comment = comment;
        }

        public String getCreated_at() {
            return created_at;
        }

        public void setCreated_at(String created_at) {
            this.created_at = created_at;
        }

        public String getUpdated_at() {
            return updated_at;
        }

        public void setUpdated_at(String updated_at) {
            this.updated_at = updated_at;
        }

        @Override
        public String toString() {
            return "ReserveInfo{" +
                    "id='" + id + '\'' +
                    ", user_id='" + user_id + '\'' +
                    ", shop_id='" + shop_id + '\'' +
                    ", manager_user_id='" + manager_user_id + '\'' +
                    ", status='" + status + '\'' +
                    ", mobile='" + mobile + '\'' +
                    ", num='" + num + '\'' +
                    ", time='" + time + '\'' +
                    ", comment='" + comment + '\'' +
                    ", created_at='" + created_at + '\'' +
                    ", updated_at='" + updated_at + '\'' +
                    ", user=" + user +
                    '}';
        }
    }

    public static class UserInfo implements Serializable {

        private String user_id;
        private String mobile;
        private String nickname;
        private String cover;

        public String getUser_id() {
            return user_id;
        }

        public void setUser_id(String user_id) {
            this.user_id = user_id;
        }

        public String getMobile() {
            return mobile;
        }

        public void setMobile(String mobile) {
            this.mobile = mobile;
        }

        public String getNickname() {
            return nickname;
        }

        public void setNickname(String nickname) {
            this.nickname = nickname;
        }

        public String getCover() {
            return cover;
        }

        public void setCover(String cover) {
            this.cover = cover;
        }

        @Override
        public String toString() {
            return "UserInfo{" +
                    "user_id='" + user_id + '\'' +
                    ", mobile='" + mobile + '\'' +
                    ", nickname='" + nickname + '\'' +
                    ", cover='" + cover + '\'' +
                    '}';
        }
    }
}
